package com.lzx.iteam.bean.aidl;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;


/**
 */
public class EventReplyNewData implements Parcelable {

    private String userId;
    private String userName;
    private String eventId;
    private String content;
    private String updateTime;
    private String avatar;//头像
    private String image;
    private String memberCount;
    private String joinCount;
    private String voteCount;
    private String attachments;

    private ArrayList<ActiveDetailBean> activeDetailBeans;

    private boolean isReaded;

    private EventReplyNewData(Parcel source) {
        readFromParcel(source);
    }

    public EventReplyNewData() {
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isReaded() {
        return isReaded;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public void setIsReaded(boolean isReaded) {
        this.isReaded = isReaded;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getMemberCount() {
        return memberCount;
    }

    public void setMemberCount(String memberCount) {
        this.memberCount = memberCount;
    }

    public String getJoinCount() {
        return joinCount;
    }

    public void setJoinCount(String joinCount) {
        this.joinCount = joinCount;
    }

    public ArrayList<ActiveDetailBean> getActiveDetailBeans() {
        return activeDetailBeans;
    }

    public void setActiveDetailBeans(ArrayList<ActiveDetailBean> activeDetailBeans) {
        this.activeDetailBeans = activeDetailBeans;
    }

    public String getAttachments() {
        return attachments;
    }

    public void setAttachments(String attachments) {
        this.attachments = attachments;
    }

    @Override
    public String toString() {
        return "EventReplyNewData{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", eventId='" + eventId + '\'' +
                ", content='" + content + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", avatar='" + avatar + '\'' +
                ", image='" + image + '\'' +
                ", memberCount='" + memberCount + '\'' +
                ", joinCount='" + joinCount + '\'' +
                ", voteCount='" + voteCount + '\'' +
                ", attachments=" + attachments +
                ", activeDetailBeans=" + activeDetailBeans +
                ", isReaded=" + isReaded +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.userId);
        parcel.writeString(this.userName);
        parcel.writeString(this.eventId);
        parcel.writeString(this.content);
        parcel.writeString(this.updateTime);
        parcel.writeString(this.avatar);
        parcel.writeString(this.image);
        parcel.writeString(this.memberCount);
        parcel.writeString(this.joinCount);
        parcel.writeString(this.voteCount);
        parcel.writeList(this.activeDetailBeans);
        parcel.writeString(this.attachments);
        parcel.writeByte((byte) (isReaded ? 1 : 0));
    }

    public void readFromParcel(Parcel source) {
        userId = source.readString();
        userName = source.readString();
        eventId = source.readString();
        content = source.readString();
        updateTime = source.readString();
        avatar = source.readString();
        image = source.readString();
        memberCount = source.readString();
        joinCount = source.readString();
        voteCount = source.readString();
        attachments = source.readString();
        activeDetailBeans = source.readArrayList(ArrayList.class.getClassLoader());
        isReaded = source.readByte()!=0;

    }

    public static final Parcelable.Creator<EventReplyNewData> CREATOR = new Parcelable.Creator<EventReplyNewData>() {

        @Override
        public EventReplyNewData createFromParcel(Parcel source) {
            return new EventReplyNewData(source);
        }

        @Override
        public EventReplyNewData[] newArray(int size) {
            return new EventReplyNewData[size];
        }
    };
}
